home *** CD-ROM | disk | FTP | other *** search
- * Copyright (c) 1990 by AT&T Bell Telephone Laboratories, Incorporated. */
- * The C++ Answer Book */
- * Tony Hansen */
- * All rights reserved. */
- / Exercise 7.5
- / Rectangle derived from a line.
- / the data in available to derived classes,
- / but otherwise private.
- lass line : public shape
-
- rotected:
- point w, e;
-
- ublic:
- point north();
- point east();
- point south();
- point west();
-
- void move(int a, int b);
- void draw();
-
- line(point a, point b);
- line(point a, int l);
- ;
-